package com.suli.multimedia.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author SuLi
 * @since 2022-04-18
 */
@Getter
@Setter
@ToString
@TableName("hotel")
public class Hotel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "hotel_id", type = IdType.AUTO)
    private Integer hotelId;

    @TableField("hotel_name")
    private String hotelName;

    @TableField("hotel_description")
    private String hotelDescription;

    @TableField("hotel_image")
    private String hotelImage;

    @TableField(value = "publish_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date publishTime;


}
